
/**
 * AppleIIGo
 * Apple II Memory Expansion Card class
 * (C) 2008 by Marc S. Ressl (mressl@umich.edu)
 * Released under the GPL
 */

#ifndef APPLEIIMEMORYEXPANSIONCARD_H
#define APPLEIIMEMORYEXPANSIONCARD_H

#define APPLEIIMEMORYEXPANSIONCARD_ROM_BYTENUM 0x1000

#include "InternalMemoryExpansion.h"

class AppleIIMemoryExpansionCard : public InternalMemoryExpansion {
public:
	AppleIIMemoryExpansionCard(class Motherboard * motherboard,
							   char * slotDeviceName);
	
	void onMemoryRequested();
	void onMemoryAllocated();
	
	UINT8 readMemory(UINT16 address);
	
private:
	UINT32 romMemoryOffset;
	UINT8 * romMemory;
};

#endif
